/*
========================================================================
 Name        : MdaAudioPlayerContainerView.h
 Author      : 
 Copyright   : Your copyright notice
 Description : 
========================================================================
*/
#ifndef MDAAUDIOPLAYERCONTAINERVIEW_H
#define MDAAUDIOPLAYERCONTAINERVIEW_H

#include <aknview.h>

#include "Mp3Player.h"

class CMdaAudioPlayerContainer;

/**
 * Avkon view class for MdaAudioPlayerContainerView. It is register with the view server
 * by the AppUi. It owns the container control.
 * @class	CMdaAudioPlayerContainerView MdaAudioPlayerContainerView.h
 */						
			
class CMdaAudioPlayerContainerView : public CAknView
	{

public:
	// constructors and destructor
	CMdaAudioPlayerContainerView();
	static CMdaAudioPlayerContainerView* NewL();
	static CMdaAudioPlayerContainerView* NewLC();        
	void ConstructL();
	virtual ~CMdaAudioPlayerContainerView();
						
	// from base class CAknView
	TUid Id() const;
	void HandleCommandL( TInt aCommand );
	
	CMdaAudioPlayerContainer* CreateContainerL();
	
protected:
	// from base class CAknView
	void DoActivateL(
		const TVwsViewId& aPrevViewId,
		TUid aCustomMessageId,
		const TDesC8& aCustomMessage );
	void DoDeactivate();
	void HandleStatusPaneSizeChange();

private:
	void SetupStatusPaneL();
	void CleanupStatusPane();
	
private:
	CMdaAudioPlayerContainer* iMdaAudioPlayerContainer;
	CMp3Player* iPlayer;
	
	};

#endif // MDAAUDIOPLAYERCONTAINERVIEW_H
